package com.rulin.asp.business.errorcorrection.mapper;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.rulin.asp.business.errorcorrection.entity.ErrorQuesAttach;
import com.rulin.asp.business.errorcorrection.entity.ErrorQuesParam;
import com.rulin.asp.business.errorcorrection.entity.ErrorQuesResultRow;
import com.rulin.asp.business.errorcorrection.entity.MyPostMessage;

@Repository
public interface ErrorQuesAttachMapper {
	int deleteByPrimaryKey(String quesId);

	int insert(ErrorQuesAttach record);

	ErrorQuesAttach selectByPrimaryKey(String quesId);

	int updateByPrimaryKeySelective(ErrorQuesAttach record);
	
	List<ErrorQuesResultRow> selectErrorQuesByParam(ErrorQuesParam param);// 根据条件查询纠错问题池列表
	Integer countErrorQuesByParam(ErrorQuesParam param);// 根据条件统计纠错问题总数
	
	MyPostMessage selectPostMessageByQuesId(String quesId);//获取发送所需信息实体
}